package today.rocky.memory.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import today.rocky.memory.domain.MemoryRecord;
import today.rocky.memory.domain.MemoryRecordExample;

@Mapper
@Repository
public interface MemoryRecordMapper {
    long countByExample(MemoryRecordExample example);

    int deleteByExample(MemoryRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MemoryRecord record);

    int insertSelective(MemoryRecord record);

    List<MemoryRecord> selectByExample(MemoryRecordExample example);

    MemoryRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MemoryRecord record, @Param("example") MemoryRecordExample example);

    int updateByExample(@Param("record") MemoryRecord record, @Param("example") MemoryRecordExample example);

    int updateByPrimaryKeySelective(MemoryRecord record);

    int updateByPrimaryKey(MemoryRecord record);
}